<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>快餐店点餐系统</title>
    <style>
        body {
            font-family: "Arial", sans-serif;
            margin: 0;
            padding: 0;
            background: url('background.jpg') no-repeat center center fixed;
            background-size: cover;
            color: #fff;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            height: 100vh;
        }

        .header {
            background: rgba(0, 0, 0, 0.7);
            width: 100%;
            text-align: center;
            padding: 20px 0;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        }

        .header h1 {
            color: #ff6f61;
            margin: 0;
            font-size: 28px;
        }

        .buttons {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            padding: 20px 0;
        }

        .buttons a {
            display: inline-block;
            padding: 10px 20px;
            background-color: #ff6f61;
            color: white;
            border-radius: 5px;
            text-decoration: none;
            font-size: 16px;
            width: 200px;
            text-align: center;
        }

        .buttons a:hover {
            background-color: #ff5a4d;
        }

        .footer {
            background: rgba(0, 0, 0, 0.7);
            width: 100%;
            text-align: center;
            padding: 10px 0;
            font-size: 14px;
            color: #ccc;
        }
    </style>
</head>
<body>
<div class="header">
    <h1>快餐店点餐系统</h1>
</div>
<div class="buttons">
    <a href="admin.jsp">主页</a>
    <c:if test="${sessionScope.user.role == 3}">
        <a href="MenuServlet">菜单管理</a>
        <a href="OrderServlet">订单管理</a>
    </c:if>
    <c:if test="${sessionScope.user.role == 1}">
        <a href="MenuServlet">菜单管理</a>
        <a href="CategoryServlet">分类管理</a>
        <a href="OrderServlet">订单管理</a>
    </c:if>
    <c:if test="${sessionScope.user.role == 2}">
        <a href="OrderServlet">订单管理</a>
        <a href="TaskServlet">任务管理</a>
    </c:if>
    <a href="logout.jsp">退出系统</a>
</div>
<div class="footer">
    &copy; 快餐店点餐系统
</div>
</body>
</html>
